import request from '@/utils/request'
// 获取部门列表
export const getDepartmentList = () => request({
  url: '/company/department',
  method: 'GET'
})
// 新增部门列表
export const addDepartment = data => request({
  url: '/company/department',
  method: 'POST',
  data
})
// 修改部门列表
export const updateDepartmentList = data => request({
  url: `/company/department/${data.id}`,
  method: 'PUT',
  data
})
// 删除部门列表
export const delDepartmentList = id => request({
  url: `/company/department/${id}`,
  method: 'DELETE'
})
// 获取部门列表详情
export const getDepartmentDetail = id => request({
  url: `/company/department/${id}`,
  method: 'GET'
})
